package com.mujin.keji.collectionsystem.module.mypager.repository;

import android.arch.lifecycle.LiveData;

import com.mujin.keji.collectionsystem.base.BaseDto;
import com.mujin.keji.collectionsystem.base.CommonRepository;
import com.mujin.keji.collectionsystem.http.Api;
import com.mujin.keji.collectionsystem.module.mypager.vo.GetMsgVo;

/**
 * 短信验证码Repository
 *
 * @author weishixiong
 * @Time 2018-06-21
 */
public class MsgRepository extends CommonRepository<String> implements IMsgRepository {
    /**
     * 获取短信验证码接口
     *
     * @param vo
     * @return
     */
    @Override
    public LiveData<BaseDto<String>> sendSms(GetMsgVo vo) {
        return request(Api.sendSms(vo)).send().get();
    }
}
